package com.pinda.controller;


import com.pinda.oms.entity.PdOrderCargo;
import com.pinda.oms.vo.PdOrderCargoSerach;
import com.pinda.oms.vo.PdOrderCargoView;
import com.pinda.service.IPdOrderCargoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lc
 * @since 2023-06-25
 */
@RestController
@RequestMapping("/pd-order-cargo")
public class PdOrderCargoController {

    @Autowired
    private IPdOrderCargoService pdOrderCargoService;

    /**
     * 订单详情页的查询sql 货品信息
     * pd_order_cargo 货物表
     * 根据订单和运单编号查询得到获取该订单对应到的货物信息表
     * @param serach
     * @return
     */
    @PostMapping("/selectOrderCargoaByorderid")
    public List<PdOrderCargoView> selectOrderCargoaByorderidController(@RequestBody PdOrderCargoSerach serach){
        return this.pdOrderCargoService.selectOrderCargoaByorderidService(serach);
    }

}
